package sudoku.data;

import java.awt.Color;

public class SolverButton {

	private int i;

	private int j;

	private int kandidaat;

	private int level;

	private Color v2rv;

	public SolverButton(int i, int j, int kandidaat, int level) {
		this.i = i;
		this.j = j;
		this.kandidaat = kandidaat;
		this.level = level;
	}

	public SolverButton(int i, int j, Integer kandidaat, int level) {
		this(i, j, kandidaat.intValue(), level);
	}
	
	public SolverButton(Integer i, int j, Integer kandidaat, int level) {
		this(i.intValue(), j, kandidaat.intValue(), level);
	}
	
	public SolverButton(int i, Integer j, Integer kandidaat, int level) {
		this(i, j, kandidaat.intValue(), level);
	}
	
	public SolverButton(Integer i, Integer j, Integer kandidaat, int level) {
		this(i.intValue(), j.intValue(), kandidaat.intValue(), level);
	}
	
	public SolverButton(int i, Integer j, int kandidaat, int level) {
		this(i, j.intValue(), kandidaat, level);
	}
	
	public SolverButton(Integer i, int j, int kandidaat, int level) {
		this(i.intValue(), j, kandidaat, level);
	}
	
	public SolverButton(Integer i, Integer j, int kandidaat, int level) {
		this(i.intValue(), j.intValue(), kandidaat, level);
	}

	public int getLevel() {
		return level;
	}

	public int getI() {
		return i;
	}

	public int getJ() {
		return j;
	}

	public int getKandidaat() {
		return kandidaat;
	}

	public Color getV2rv() {
		return v2rv;
	}

	public boolean equals(Object o) {
		SolverButton b = (SolverButton) o;
		if (o == null)
			return false;
		return i == b.getI() && j == b.getJ() && kandidaat == b.getKandidaat() && level == b.getLevel();
	}
}